export {}

type Fn = () => void
// 类型
type      Stu  = {name:string, skills: string[], hi: (s:string)=>void }

// 接口
interface IStu   {name:string, skills: string[], hi: (s:string)=>void }

const stu1:Stu  = {
    name: '小花', 
    skills: ['react','vue','ts'],
    hi:(s)=>{console.log(s)} 
}

const stu2:IStu = {
    name: '小白',
    skills: ['vue3'],
    hi:(s)=>{console.log(s)}
}